import React, { memo } from 'react';
import classnames from 'classnames';
import { Tooltip, Button } from 'antd';

import styles from './style.less'


const SettingItems = memo(({ title = undefined, onClick }) => (
    <Tooltip title={title}>
        <Button type="link" className={styles.popoverIcon} onClick={onClick}>
            <i
                className={classnames('icon', 'iconfont', 'iconshezhi', styles.settingIcon)}
            />
        </Button>
    </Tooltip>
    ))

export default SettingItems
